use tokio::signal;

mod log;
mod docker;
mod rabbitmq;
pub mod system;

pub async fn init() {
    log::init();
    tokio::spawn(rabbitmq::init());
    signal::ctrl_c().await.expect("Ctrl+C失败！");
    println!("Press Ctrl+C to stop.");
    println!("Received Ctrl+C, stopping the main thread.");
}